Part Number Hot Search : 
1N415 CS5112 AD783 PK5GTA GMA733 CT1G0 BZT03C62 MCF527X
Product Description
Full Text Search
 

To Download AN442 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rev. 0.1 1/15 copyright ? 2015 by silicon laboratories AN442 AN442 si1102 and si1120 d esigner ? s g uide 1. introduction the si1102 and si1120 are low-cost, high-performance, ac tive-optical reflectance-ba sed proximity sensors. both drive an led to illuminate a target, t hen measure the reflectance from the target to determine its proximity. both the si1102 and si1120 use short-duration strobe pulses to measure reflectanc e. this keeps the average power consumption in the microwatt range. both devices cancel background dc ambient before making a reflectance measurement. the reflectance measurement is the difference between the dc ambient and dc ambient plus reflection from the ta rget illuminated by the led. the si1102 is a stand-alone, dual-port proximity sensor driving a single led. it uses an internal analog wakeup controller that is controlled through an external resistor to set the time interval between measurements. the prx output is maintained between measurements allowing the si1102 to behave as a proximity on-off function. the si1102 is well suited for applications , such as electronic toys, powering transmitters for rf alarm sensors, and saving energy in homes or offices. although the best performance is achieved with 850 nm leds, the si1102 can also be used in short-range applications where red visible le ds are useful, such as hand wa shers or paper towel dispensers. the si1102 sensitivity adjustment se ts a fixed proximity threshold, a re flectance level at which it will detect proximity. this absolute level threshold may drift around 20% or more depending on temperature, led supply voltage, led aging, and other environmen tal factors. consequently, although it is possible to set a threshold that is less than 10% different than the absolu te reflection, it may not be consistent . it is, therefore, good system practice to allow for some system programmab ility, such as using potentiometers. the si1120 is designed to operate with a microcontroller. ra ther than an on/off output as in the si1102, the si1120 encodes the reflectance measurement as a pulse-width-m odulated output where the pulse width is directly proportional to the measured reflectance. silicon laboratories offers a wide range of microcontrollers that are well-suited for use with the si1120. most silicon laboratories microcontrollers offer the pca (programmable counte r array) that can easily be used to measure the pulse width output. with the addition of a microcontroller, higher level functions can be added. the microcontroller can be used to control multiple leds, enabling position determination through triangulation. in addition, unique human interface conc epts, such as gestures, can be implemented to enhance the user interface for your product. such an interface can provide product diff erentiation, resulting in additional product revenue. the microcontroller can also be used to control multiple sens ors and a single led for applications that are particularly power-sensitive. the si1120 can be programmed to drive a 400 ma or 50 ma pu lse. when used with a micr ocontroller, it is possible to dynamically change the led current drive to eith er optimize for range or lower overall system power consumption. with the microcontroller, the reflectance measurement frequency can be customized based on the current usage state. another feature ma de possible by a microcontroller is the abilit y to improve the snr of the reflectance measurement through pulse averaging. when used with ir f ilters and lenses, it is possible to use the si1120 and microcontroller to detect human-sized objects one meter away.
AN442 2 rev. 0.1 figure 1. reflectance-based proximity detection figure 2. si1120 circuit transmit led si1120 or si1102 optical barrier case object in proximity optical window vdd / dc+ gnd / dc- dcen vbat gnd p0.0/vref p0.1 / agnd p0.2 / xtal1 p0.3 / xtal2 p0.4 / tx p0.5 / rx p0.6 / cnvstr p0.7 / iref0 p1.0 p1.1 p1.2 p1.3 p1.4 p1.5 p1.6 xtal3 xtal4 rst / c2ck p2.7 / c2d prx txgd txo stx vss md sc vdd c8051f931 si1120 c1 1.0 uf c4 68.0 uf r1 30 ohm c2 10 uf c3 0.1 uf tx led 3.3 v
AN442 rev. 0.1 3 figure 3. si1102 circuit 2. electrical considerations this section is applicable to both the si1120 and the si1102 . this section focuses on the electrical properties of the si1120 and si1102. items covered include: ? choosing the right resistor and capacitor for your system ? choosing the voltage rail used to drive the led ? estimating system power requirements ? pcb layout guidelines the following sections do not need to be read sequentially; it is best to simply reference topics of particular interest. 2.1. txo (led dr iver) characteristics the led current is governed by the following parameters: ? led voltage rail (v led ) ? resistor (r led ) ? capacitor (c led ) unlike the si1102, the si1120 has a choice of either driving a peak of 50 ma (prx50 and prx50h modes) or 400 ma (prx400 mode). in this section, only the 400 ma dr ive option is discussed since this peak led current is common to both the si1120 and the si1102. the princi ples apply regardless of the peak led current choice. the current through the led can come either from the c led capacitor or from v led flowing through the resistor, r led . assuming that the c led is in a ?fully charged? initial condition, the led current initially comes from the charge stored in the capacitor. as the capacitor sources curren t, the voltage across the capacitor begins to drop. this voltage drop causes a potential difference across r led . after a sufficient period of time, the current is sourced only through v led , through the r led resistor. a typical si1102 and si1120 transistor vi curve is shown in figure 5. above on e volt, the transistor is in its active region and drives a current of approximately 400 ma. when the txo voltage is below 0.5 v , the transistor is in its saturation region and no longer sinks the peak 400 ma. prx prx 1 txgd 2 3 txo 4 dnc vss fr sren vdd 8 7 6 5 si1102 vdd vss c1 c2 c3 r3 txled r1 r2 0.1 f 10 f 10 f 5 ? 100 k ? 100 k ?
AN442 4 rev. 0.1 figure 4. simplified txo circuit figure 5. txo voltage-current characteristic it is important to touch on the internal operation of the si 1102 and si1120; it is essential to understanding why the first 20 sec of the txo drive is so critical. the si1120 and si1102 contain an ambi ent ir circuit designed to reach an equ ilibrium state in which its current is equal to the photodetector current prior to the start of the led drive. when the photo detector current increases due to the ir light (indirectly sourced by the led through reflection), the ambient ir circuit does not instantaneously adjust its current to match that of the p hotodetector. therefore, at that moment, the photodetector current is higher than that of the ambient ir circuit. this difference in current is the initial detect state. in the si1102, this information is fed into an internal circuit. in the si1120, this event causes the si1120 to keep the prx asserted instead of negating. a consequence of this is that the led continues to emit light and reach the photodiode to keep the photodetector operat ing at this state with increased current. the ambient ir circuit is a servo feedback circuit that then tries to match the current to that of the photodetector current. at the point at which the am bient ir reestablishes equilibrium wit h the photodetector current, the txo drive is shut off. given that the ambien t ir circuit takes time to reestablis h this equilibrium with the photodiode current, this time frame is proportional to the reflectance. c led v led led r led i txo + v txo - txo si11xx 0 50 100 150 200 250 300 350 400 450 500 00.511.522.53 vt xo (v) itxo (ma)
AN442 rev. 0.1 5 for the si1102, the ambient ir circuit correction is nonlin ear; correction is faster for high ambients and the longer the correction has taken. for the si1120, the ambient co rrection circuit slews at a constant, highly linear rate depending on the gain setting; consequently, the puls e width is a linear function of the reflection. for the si1102, the pulse width (proportional to the reflec tion) is compared with an internal pulse generator (one shot) whose width is controlled by the resistor value on the sren pin. if the ambient ir circuit matches the increase in ambient from reflection before the sren circui t times out, then the reflecti on is below the set threshold. if the sren pulse generator times out before the ir ambient circuit matche s the increase in ambient, then the reflection is above threshold, and prx goes low. whichever decision occurs first, either the ir ambient circuit matches the reflection increase or the one shot times out; then, the led is turned off since there is no reason to leave the it on. this behavior can be seen if you put a scope on the txo pin. txo pulse width will be constant for out-of-range objects, but, wh en detection threshold is reached, the pulse width will decrease as the reflection increases. for the si1120, the prx pulse width is kept asserted until the equilibrium state has been reached (as long as stx stays high). the time frame is the basis of the prx pulse width. nearby objects reflect more of the led ir, which results in more photodiode current. more photodiode curren t means that the internal ambient ir circuit needs more time to overcome the photodiode current. thus the si 1120 prx pulse width increases with higher reflectance. for best linearity, led current should be consistent th roughout the txo drive. table 1 summarizes the component selection for best linearity. although the si1102 and si11 20 drivers are both constant current above 0.5 v txo voltage (eliminating the need for a current-limiting resistor ), the si1120 has a high-impedance driver that varies less than 1% per volt on either txo or vdd (while the si 1102 driver may vary more than 20% per volt). for si1102 absolute reflection operation, txo current variation of up to 10% from battery fluctuatio ns is usually not critical. however, for motion detection (where detection of change s in reflection of less than 1% is important), the low variation in txo current with fluctuations in led or vdd supplies becomes critical. finally, the last consid eration in choosing c led and r led is the power drawn through txo. since the instantaneous power into any node is governed by the voltage-current product, the txo pin heats up the si1102 and si1120 much more if it is drawing 400 ma at a lowe r, as opposed to higher, txo voltage. this means that excessively large c led capacitors or excessively small r led resistors should be avoided. 2.2. choosing v led the led circuit does not necessarily need to be powe red from the same vdd used to power the si1102 and si1120. the decision on which voltage rail to use for v led must be considered. in general, the simplest option is to use an unregulated voltage rail. using an unregulated voltage rail (must be < 7 v) is generally the best option. in any system, there are ?regulated? and ?unregulated? voltage rails. the si1102 and si1120 are designed so that the led can be powered from either. the fundamental issue governing the choice of v led voltage rails is the manner in which the instantaneous led current affects the entire system. it is important that the si1102 and si1120 led circuits do not adversely affect other system components. 2.2.1. led current tapped from unregulated voltage rails the advantage of using an unregulated po wer supply is that the effect on other system components is mitigated by the regulator. the regulator is already expected to regulate the voltage to the rest of the system, and any voltage ripple introduced by the sourcing of the led current does not affect the rest of the system. table 1. recommended r led and c led vs. v led v led r led c led 3.3 v 2 ? 5%, 1/16 w 10 f 20% 5.0 v 5 ? 5%, 1/4 w 10 f 20% 7.0 v 10 ? 5%, 1/2 w 10 f 20%
AN442 6 rev. 0.1 2.2.2. led current tapped from regulated supply rails the first step is to determine whether the regulated ra il has enough current for the led. it is best to consider sourcing 2 ms at 400 ma to best assess the supply capability. it is desireab le for the regulator to supply the entire 400 ma. however, it is no cause for alarm if the regulated supply cannot instantaneo usly supply the full 400 ma for 2 ms. it is still possible to ascertai n feasibility by allowing some of the current to be supplied by capacitors on the voltage rail. note that this comes at a price; for capacitors to supply current, voltage must drop. the amount of voltage drop is governed by the following equation: converted to a form we can use for this analysis: this equation determines the voltage drop that occurs at the point of current draw. the voltage drop is directly proportional to the current drawn from the capacitors and the pulse time and is inversely proportional to the capacitance in the system. finally, approximate the amount of current supplied from the capacitors by subtracting the current that can be supplied by the regulator. thus, the equation reaches its final form: 2.3. estimating system power the system power consumption is dominated by the power delivered to the ir led. for this reason, the simplest way to estimate system power is to focus on the led current. the following equation can be used: for example, assume that the led current is from a 5 v unregulated supply. also assu me that, for the majority of the time, the si1102 or si1120 detects nothing (pdete ct = 0). if the conversion frequency is 10 hz, then: the power drawn by the si1120 or si1102 on vdd is small compared to the power used in the led. for the si1120, it is recommended that the host firmware keep the si1120 in its low-power state. given the same assumptions, the power drawn by the si1120 when powered at vdd is: ic dv dt ------ = dv dt i c --- - ? = dv .002 0.4 i reg ? ?? c ------------------------------- where: ? c is the overall capacitance at the v led rail i reg is the current supplied by the regulator for the led = p led 1-percentdetect ?? p no_detect percentdetect ?? + p detect ? p no_detect convfreq 15 sec ? 400 ma ? v led ? p detect convfreq 1000 sec ? 400 ma ? v led ? = = = p led p no_detect 10 hz 15 sec ? 400 ma ? 5 v ? p led 300 w == = p chip convfreq 15 sec ? 14 ma ? v dd p chip 6.9 w = ? =
AN442 rev. 0.1 7 2.4. pcb layout guidelines both txo led drivers on the si1102 and si1120 were designed to have slow rise and fall times of around a few hundred nanoseconds intended to keep di/dt below severa l ma/ns, minimizing inductive ground bounce, inductive coupling to adjacent signal lines, and emi effects. usually, current resistive voltage drops are more of an issue for the 400 ma drivers for currents in the led and ground return paths including the led decoupling capacitors. however, when solder is present on a pcb, trace resistances are normally small enough so that, usually, no special layout considerations are warr anted. note that the current flows through two current loops: one loop is formed from the c led capacitor to its local ground, and the other loop is formed from the v led to ground. 2.5. mathematical m odel of the led circuit previous sections discussed the fact that the led circuit can be sourced from either the c led or the led voltage rail, v led . it is useful to have an equation that provides a way of calculating how lo ng the led is operating at 400 ma. such an equation can be derived from the simp lified led circuit of figure 6, with a constant-current source approximation of the transistor and a simp le constant voltage source model of the led. figure 6. simplified led circuit thus, the txo voltage of the asserting edge is: since the current is a function of volt age, it can implicitly be deduced that the current is being sunk by the txo node. the transistor characteristics show that the boundary between the transistor active region and the saturation region is somewhere between 0.5 and 1.0 v; so, by assigning v txo = 0.7 v and solving for time, t, the time needed for the transistor to transition from the active region to the saturation region can be calculated: c led v led led v f r led i txo + v txo - txo si11xx v txo v led v f ? ?? e t ? r led c led ? -------------------------------- - ?? ?? ? v led v f ? 400 ma ? r led ? ?? + = tr led c led ? v led v f = 400 ma ? r led 0.7 ? ? v led v f ? ----------------------------------------------------------------------------------------- - ?? ?? ln ? where: v led is the voltage rail of the led r led is the resistor c led is the capacitor v f is the forward voltage of t he sfh 4650 led = 1.7 v @ 400 ma =
AN442 8 rev. 0.1 3. optical considerations this section contains various light-related topics helpful in understanding the light environment and its effect on the si1102 and si1120. in general, the following sections are self-contained and need not be read sequentially. some of the topics covered are: ? basic reflectance proximity principles ? single port vs. dual port windows ? receiver sensitivity of the si1102 and si1120 ? light noise ? improved range ? leds 3.1. reflectance proximity principles unlike passive infrared receivers (pir), which detect object motion by sensing changes in illuminated or naturally- emitted infrared, reflec tance proximity devices actively illuminate t he object with an emitter, directly measuring reflectance. however, unlike radar or lidar, which meas ure reflectance transit time to determine distance, reflectance proximity sensors use signal level and optical techniques to de termine range. because the reflectance from an object falls off with the fourth power of the distance (as with radar), if the object's angle is less than the beam width of the emitter or receiver, the signal level of the reflectance can provide a range estimate typically within a factor of two since an object?s reflectance does not typically vary by more than about ten to one. although, this same fourth-power response severely lim its range beyond about ? meter without optical lensing or averaging, it does mean that large or even very reflective objects mo re than 2x further than the proximity range will not cause spurious detection, unlike pir devices. 3.2. single port vs. dual port single-port operation, where the same window is used for both transmit and receive, creates significant receiver overload issues (even for radar). single port operation is particularly problematic with non-transit time reflectance- based systems since the reflectance from a common sh ared window for the transmit led and the receive photodiode produces a very large interfering signal with no way of differentiating the reflection from the window or object (unlike transit time systems). without some type of optical is olation, a single window will easily have 100x more reflectance from the window than the object being dete cted, even if it is only a few centimeters away. this is also why a camera flash uses an optical path separate from the imaging path (unlike very short-range microscopes, which use the imaging objective to illuminate the object) and why car headlights are not behind the windshield. dual-port operation will always give th e best performance. the si1102 only op erates in dual-port mode requiring very high optical isolation where the leakage coupling from the led to the ic is always less than the reflectance from an object. however, the si1120 can be used in either dual-port or single-port mode. in single port mode (prx50h), the si1120 requires motion detection signal processing. for long-range proximity sensing (usually over ? meter), high isolation dual-port operation is no rmally not possible since there are normally many large objects within proximity range, such as walls, desktops, etc. these nearby objects return a large reflectance relative to any moving object that needs to be detected. however, for best performance, it is desirable to minimize optical coupling between the transmitting led and detector. excessive coupling increases noise floor and spurious motion detection due to ambient light modulation.
AN442 rev. 0.1 9 figure 7. single port vs. dual port 3.3. proximity reflectance sensitivity for a short 10 s pulse, the internal noise floor for both of these products is equivalent to around 0.5 w/cm 2 rms (~1.5 s pwm in high-sensitivity) of radiance at the peak response. this makes the lowest practical pulse detection threshold around 2 w/cm 2 (12 db s/n) in low light noise environ ments. lower thresholds can be used with averaging techniques. an efficient 850 nm infrared led emitter driven with 400 ma of peak current might output up to 80 mw of infrared. in a lensed led package, narrowing the beam width to 15 might produce 100 mw/sr, which results in an irradiance of 100 mw/cm2 if the receiving (rx) proximity ic is placed 1 cm directly in front of the transmit (tx) led. note that the dynamic range of noise floor to maximum signal is about 1 to 200,000 or 106 db (20 x log 200000 = 106 db). typically, the transmit led is aimed away from the receiving ic , but, if placed next to the ic with an infrared plastic window only a few milimeters away, the reflecte d tx levels at the ic may be over 1 mw/cm 2 . consequently, because it is dual-port only, when using the si1102, th e optical coupling from the led to the receiver must be below the detect object threshold or below the noise floo r. when using an efficient led and driving with 400 ma, this may as much as 106 db or 2 x 10 5 . generally, this is only possible with a dual-port optical structure in which the emitting led is completely isolated and radiates it s output through a separate aperture in the product case different from the receiving window or hole. if the tx led and ic are close to each other, this may require an internal optical fence between the two. however, for shor ter-range applications (~ 5?10 cm), a single window with an optical barrier, such as black rubber between tx and receive (the black rubber must be sealed tightly to the interior surface of the window), may provide sufficient op tical isolation. at 5?10 cm, the reflectance from a target object will be several hundred time s higher. since the criteria for dual port is that the non-target c oupling needs to be less than the target, the stray coupling needs to be less than ~10 3 . since an led next to th e ic reflecting from a transparent plastic window probably has about 3% reflectance relative to a mirror (espec ially if the led is laterally spaced by at least twice the distance to the window), then the optical coupling need ony be reduced by another factor of 30. this can generally be achieved by an optical barrier from the pc board to the inside surface of the window. some light will light -pipe internally, but it is usually lo w enough to allow 5 to 10 cm response. mode 3 transmit led optical bl oc k (<10 -6 transmissive) mode 2 si1120 internal reflection transparent window optical block tr ans mit led si1120 mode 4 dual-port optical window single-port optical window
AN442 10 rev. 0.1 however, it is important to keep in mind that, due to th is same very high dynamic range, high optical loss ports are acceptable. a 30 db (31.6 to 1 attenuation) loss only results in one third the range (up to 15 cm). this means existing holes in product cases not designed for optical use may be acceptable for short-range proximity sensing; so, the receiving ic might be put next to a speaker or microphone hole that even has a screen over it, and the emitting infrared led might be placed behind a glass displa y screen. in fact, by atten uating the ic input, there is often not much loss in range over what might arise from worst-case environmental light noise. if given two semi- opaque windows, one of which is more opaque than the ot her, it is best to place the led under the less opaque location and let the si1120 or si1102 be in the more opa que location. this choice will result in a better signal-to- noise ratio. users are warned that it is possible to adjust the si11 02 to have high apparent sensitivity where the tx to rx coupling might be as much as 10 to 100 times more than the reflectance from the detected object. this type of adjustment will not be stable since dr ift in the gain or power supply volt age can cause spurious detects or no detects. the led has a high temperature coefficient of around 0.4%/c. consequently, a 10 c change can cause a 4% decrease in signal. if it is unavoidable that a high optical coupling exists between the tx (led) and rx (si1120), the si1120 may still be used for motion detection applications, even under this somewhat difficult co ndition. essentially, motion detection looks for changes in reflection over the last second or so, ignoring longer-term slower changes. for example, the repetitive pulse width (sampled every 100 ms ) output would be averaged over the last 10 seconds, and a motion detection event is determined to occur if the average pulse width value over the last second has changed by at least 10 sec. in high-s ensitivity proximity mode (prx50h), 10 sec of pulse width corresponds to about 3.3 nw/cm 2 of reflectance change. the si1120 offers tw o proximity ranges that differ in pulse width sensitivity by 9. the less sensitive range overloads (max imum pulse width) at about t en times higher input levels. in a high-reflectance environment, the lower sensitivity range may need to be used. although motion detection cannot unambiguously detect t he presence or absence of an object unless it moves, it can estimate object distance and possibly direction of moti on when the object moves. because of the fourth-power effect, a 20% change in distance results in a change in me asured reflectance of over two to one. since any motion- detected object must return a reflectance that is more than the change threshold, this means that we should be able to accurately and easily detect object movement. direction of motion can be valuable but may require multiple led sources. if the si1120 is not used for motion but, rather, as a two- port absolute proximity detector, the calibrate mode (ofc) should be used to maximize performance. this mode is implemented internally in the si1102, but, in the si1120, it is provided as a separate mode. the calibration esse ntially measures the zero reflectance value by making proximity measurement with the led tx driver turned off. if a microcontroller controls mult iple leds, it is possible to perform this calibration function by disabling the led and doing a proximity measurement (in either high or low sens itivity). the calibration func tion is important since the zero reflection offset value can change by a small but significant amount depending on the dc ambient. because the dc ambient may be changing rapidly, it is important to perform a calibrate measurement immediately before the proximity measurement without delay between the two measurements. the jitter on the calibration pulse is a measure of noise in the environment and, consequently, can be used to set a minimum detect value; this might be set to one to several times the peak-to-peak jitter value in order to set a robust detect threshold higher than the environmental noise. for motion detection, the calibrate fu nction is usually not necessary since the long-term average provides the reference. on the si1120, the virl ambient mode has the same refl ectance-pulse width transfer function as the prx400 or prx50 proximity modes. therefore, it is possible to us e the virl ambient mode (looking for excessive prx jitter) as a way of debugging the presence of severe enviro nmental noise when the prx400 or prx50 operations result in excessive prx jitter. in the same way, the virh ambient mode can be used to debug the prx50h proximity mode.
AN442 rev. 0.1 11 3.4. light noise the low-cost silicon photodio de used in the proximity sens or has a peak response in t he near infrared but also has a significant response in the visible light region unle ss blocked by a filter. consequently, both the visible and infrared characteristics of the environment can limit the performance of these proxim ity sensors. light in the environment is measured in terms of either lux, which is illuminanc e (visual intensity), or in w/m 2 , which is irradiance (power per area). one of the topics relevant to ambient light and noise issues pertaini ng to reflectance proximity sensors is the luminous efficacy of radiation (ler). the ler is the rati o of luminous flux to radiant flux. as a reference, direct sunlight at noon provides about 100 mw/cm 2 of irradiance (received power) or 110 klux of illuminance (visual intensity), usually the maximum continuous light leve l that a proximity se nsor will encounter. indoor lighting levels are typically less than 1 klux or about 230w/cm 2 if the light is from efficien t lighting (with no infrared like fluorescent), but, if the 1 klux is from incandescent lig hts, it will produce about 1.5 mw/ cm 2 silicon weighted response (relative to the mw/cm 2 for a source at the silicon diode peak response) due to their high infrared output. sunlight has about one- fourth to one-fifth th e silicon diode infrared response pe r lux as an incandescent bulb. the silicon photodiodes used in the si1102 and si1120 tend to have a broa d response from about 350 to 1000 nm, with a peak around 830 nm. light noise in the environment arises principally from shot noise, 120 hz or 100 hz ac mains light modulation, and high-frequency electronic ballasts used in fluorescent lights (especially compact fluorescents or cfls). the behavior of the noise sources is different in the visible versus infrared wavelength bands. shot noise on a photodiode is proportional to the sq uare root of the current or background ambient level. generally, the largest shot noise occurs in direct sunlight (~100 mw/cm 2 ), which, for both devices, is equivalent to an rms noise of about 3 w/cm 2 . a tenfold reduction to 10 mw/cm 2 (shade) will reduce th is noise to about 1 w/ cm 2 . below 2 mw/cm 2 , the shot noise is less than the noise floor. generally, indoor lighting is less than 1 klux and for it to exceed 1.5 mw/cm 2 requires either daylight, window lighting, or bright incandescent lighting. bright fluorescent lighting is much le ss than these levels. consequently, shot no ise has little effect on sensitivity for most indoor applications unless the proximity devices are direct ly under strong incandescent lighting. even in direct sunlight, the increase in nois e floor only reduces detection range by less than twofold. the peak-to-peak ripple of incandescent or halogen lig ht sources at 120/100 hz is about 10% of the average value, but, since incandescent or halogen contains significant power in the infrared region (eight times more infrared than visible light) and since the photodiodes (used fo r proximity sensing) respond primarily to infrared light, shot noise is a dominant noise source when the proximity detectors are under direct incandescent or halogen light. fluorescent lights can actually have much higher light ripple percentage than this for both standard ballasts, but virtually the entire ripple is in the vi sible band. most high-frequency inverter ballasts filter the i nput rectified voltage to reduce 120 hz/100 hz ripp le or visible flicker but may still have peak-to-peak mains ri pple comparable to incandescent ballasts. of course, any other type of li ghting powered from the ac mains, whether white led, industrial sodium lights, mercury vapor, etc., will all typically have these 120/ 100 hz components. in addition, the high-frequency ballasts on fluorescen ts typically use 20 khz (long tubes) to 40 khz (cfls) inverters, which generate a triangular current waveform t hat, when folded, causes a 2x frequency light modulation of the ultraviolet light from the mercury vapor plasma discharge. the actual peak-to-peak visible light ripple at 40 khz or 80 khz is much less (<5%) than the ultraviolet ripple due to the time const ant of the phosphors used on the inside of the tube. although the mercury plasma mostly generates ultraviolet, it produces a small amount of visible and infrared radiation directly, which can leak past the phosphor. the peak-t o-peak percentage modulation of the infrared component can be quite large, although the absolute value is typically low. without infrared filtering, cfl noise is typically about 5 w/cm 2 to 10 w/cm 2 in most cfl illuminated environments. consequently, for shorter range applications where detect thresholds are above 20 w/cm 2 , infrared filterin g is not necessary. for best performance, it is recommended that infrared filter ing be available for the si1120 if the als function is not used. for the si1102, infrared filtering is necessary. although infrared filtering of the receiver ic can remove visible light inverter noise, it gene rally has little effect on shot noise or 12 0/100 hz infrared from incandescent lights. however, both the si1102 and si1120 electrically filter 1 20/100 hz noise to reduce its level by 50 db, or 316 to 1. on the si1120, 120/100 hz noise can be mitigated for moti on sensing by sampling exactly every 50 ms since there are exactly six cycles of 120 hz or five cycles of 100 hz. similarly, to improve sensitivity and reduce the effects of 120/100 hz, multi-strobe integration periods should be in exact multiples of 50 ms.
AN442 12 rev. 0.1 3.5. improving range as with radar or lidar, beaming of transmit and receive sign als (with dish or directiona l antennas) is important for improved performance. similarly, for reflectance proximity sensors, lenses that concen trate and beam the reflected light can improve range and more ac curately define proximity spaces. using lenses can increase the range to several meters on both devices. the use of a lens on the receiver increases the signal level and reduces noise pickup from und esirable directions, while a lens on the emitting led narrows the beam and increases its power angle density in th e direction in which it is pointed. the crossover region of the transmit and receive optical beams can provide a proximity detection in space. in addition, multiple, separately-strobed leds can be used to define both spec ific proximity region overlaps and relative positions in space, or two leds defining different width cones can be us ed to determine if an object is above or moving directly above a point or off to the side. the main tradeoff in using lenses is th at they tend to make the optical system more ?directional?. however, if the goal is to increase the range of detection, it certainly merits consideration. besides using lenses to improve sensitiv ity, pulse averaging can also increase range by 3x or more, but this is only viable on the si1120. pulse averaging de creases the effects of both internal noise and external noise, typically improving s/n proportional to the square root of th e number of measurement cycles averaged. for example, averaging 10,000 cycles will improve signal- to-noise by a factor of 100, wh ich will typically improve range by a factor of 3. multiple strobes on the pwm output of the si1120, can be integrated to improve signal-to-noise. normally, the signal-to-noise improvement is proportional to the sq uare root of the total number of strobe cycles integrated. for example, if 40,000 strobe cycles are integrated, the signal -to-noise ratio should improve by about 200, which, in turn, will increase pr oximity range by about 3.7 giving a range of two meters without lens. of course, the total power consumption increases proportionally to the number of strobes. for maximum sampling rate, a dual-port structure should be used in order minimize pulse width by minimizing very near local reflection. however, high- sensitivity integration requires motion detection since, in most applications, at two me ters range, there are fixed weak reflectors closer than two meters, such as walls, floors, ceilings, and doors). if a lens is added on the led that pr oduces a 10 degree beam width from a 60 arc of the led, that will increase mw/sr by 6 2 or 36. similarly, since the active infrared silic on photodiode area on the si1102 or s1120 is about 1mm 2 , a lens with 7 mm diameter, will in crease power density in w/cm 2 by about 38x on the active photodiode. the fourth power of the products of both the tx and rece ive gain is about 6, the increase in proximity range. this illustrates that small lenses ca n improve range much more than multi-strobe integration. note that leds with built- in lenses are available in the market. finally, the third basic range-increasing technique is to use safety reflectors or reflective material. these reflectors use the three-surface-corner reflector principle in which light bouncing off the surfaces of the corner of a cube goes directly back to its source. because the returning light is no t diverging, the reflectance fa lls off much less than the fourth power; typically, only a few square inches of reflective tape will ea sily double or triple the proximity range. using all three range extension techniques of reflector ta pe, lenses, and signal integration, an interrupter motion detector with a range of 30 meters may be possible using the si1120.
AN442 rev. 0.1 13 3.6. led parameters an d multiple led operation best performance is generally achieved with the highes t output efficiency 850 nm leds. however, 940 nm leds can also work. red leds have reduced range but may be suit able in applications where it is desireable to have a visible proximity indicator. white leds , which convert blue to white, are not recommended because of the long rise and decay time constant of the phosphors used to broaden or whiten the wavelength. the si1120 can be used to drive multiple leds in conjun ction with microcontroller gpio pins to control multiplexing switches to steer the txo driver to multiple leds. with multiple leds, a wide variety of enhanced applications become possible. for example the proximity sensor may be placed on the front of a motorized toy with an led on each side to allow the toy to sense whether an obstacle is to its left or right and steer away from it or, conversely, to allow a robot doll head to track an object within proximity range by turnin g its head to keep both reflections at equal amplitude. for human interfaces, multiple appropriately located and lensed leds can be used to determine hand gestures laterally, vertically, inward, and ou tward by measuring reflectance and applying suitable algorithms. simple examples include using hand motion to control the dimming on-off function of a light switch, control picture viewing in an electronic picture frame, or page through documents on e-readers. the proximity sensor can also turn on the picture frame when a viewer's motion is detected nearby and turn it off to save power after the viewer leaves. 3.7. motion detection when used with a microcontroller, the si1120 can be used to implement a simple motion detection system. the simplest motion detection system requires only a single led. however, if it is desired to cover a larger area, it may be necessary to have multiple leds, each targeting a di fferent direction. the number of leds used in such a motion detection system is depen dent on the angle co verage. for example, it will ta ke approximately four to five 20 half-angle leds to cover 180. for motion systems, motion sensitivit y is a function of the ti me between samples. r apid sampling rates will have less difference between adjacent samples. typically, for human motion detection, sample periods can be anywhere from 10 ms to 1 second between samples. if higher samp ling rates are used to integrate to improve signal-to- noise, moving averages delayed by at least 1 s are us ually required. of course, motion systems can indicate motion towards or away from, which is sometimes useful. when using motion detection algorithms that detect a ve ry small percentage change in reflection, it is important that the led driver not saturate but stay in constant current mode in order to minimize the effects of power supply fluctuations on led tx current, which may cause spur ious motion detection. a few percent variation in led current from pulse to pulse is not critical. these fluctuations can occur if the led driver is saturated due to a high led drop or a series current-limiting resistor and the powe r supply voltage is changing due to other loads or even the led driver. the 400 ma led driver is designed to be connected to an independent voltage supply up to 7 v in order to prevent overloadi ng of the regulated vdd supply. often, the led anode supply may have a significant voltage ripple because it is an unregulated battery or input supply with significant wire drop load ripple, etc. imagine that we have a simple led circuit with only a resist or and an led with a 3 v supply. in this case, there is nominally a 2 v constant voltage drop across the led with only a 1 v drop across the resistor. when there is a 100 mv change on the 3 v supply, this 100 mv change ap pears primarily across the re sistor because the 2 v drop across the resistor is generally constant, due to the na ture of diodes. a 100 mv drop, given an initial resistor voltage of 1 v, translates directly to a 10% drop in current. a 10% drop in current implies a 10% change in total reflectance, and this can easily be 10 time s more than the motion change threshold. in order to prevent led supply modulation, the si1120 led txo driver has been designed to have very high constant current impedance. the 400 ma (or 50 ma) internal current limit has less than a 1% per volt change in current. consequently, a 100 mv ch ange in led anode supply will cause less than a 0.1% change in led intensity, which is much more desirable for sensitive motion detection algorithms. another source of spurious motion detection can arise fr om dc ambient modulation of the receive gain. on the si1120, the photodiode and analog front end may have a 1% change in gain over the extremes or dc ambient. this might happen if, in direct sunlight, a shadow falls across the ic receiver. obviously, if the reflectance is already very high, a 1% change may be more than the motion detection threshold. again, this is a reason to minimize stray optical coupling for motion detection to keep the ambien t gain modulation below the minimum detection threshold.
AN442 14 rev. 0.1 to mitigate such issues, the motion algorithm can incr ease the minimum detect change threshold proportional to the product of total dc ambient times to tal reflectance. the effect is that the motion detectio n range will decrease in a high infrared ambient environment, such as typical outdoor daylight. 3.8. equation mode l of the sfh 4650 led the radiant intensity of an led is a func tion of the angle relative to surface normal. a mathematical equation of the sfh 4650 led has been derived empirically to make it easi er to calculate the expected radiant intensity at any given angle relative to the surface normal. the equation uses degrees rather than radians for ease of comparison with the sfh 4650 led data sheet plot. the radiant intensity of the sfh 4650 as a function of th e incident angle can be shown by the following equation: the mathematical model is shown in figure 8. figure 8. radiant intensity vs. angle for the sfh 4650 model 0.25 1 ? 90 ------ ? ?? ?? 0.75 cos 12 ? ?? where ? 0 to 90 = +
AN442 rev. 0.1 15 3.9. calculating irradi ance from a diffuse surface this section demonstrates how to trace a light ray fr om an sfh 4650 led to a lambertian diffuse surface, then down to a detector, such as the si1120 or si1102. in this simple example, the only source is the sfh 4650 led. figure 9. simple optical problem in this example, we need to first determine which light ra ys fall on the detector. it is a better approach to trace light rays from the detector backwards to the emitter. the reason for the reverse ray tracing method is that emitter rays failing to reach the detect or do not result in any irr adiance measured at the detector. emitter rays that miss the detector are, therefore, insignificant. if we had chosen to begin at the emitter, we may end up analyzing more rays than is necessary. for this example, forward ray tracin g or reverse ray tracing yiel ds the same result. however, when it is time to analyze a larger object by breaking th e object into multiple flat polygonal surfaces, reverse ray tracing can save computation time. in this example, we assume that the tar get (with an area, a) is sufficiently sm all, such that there exists only a single ray for us to analyze. assuming that the target has an area of a and that the target is horizontal, the incident angle ? dt is formed. here, the target is assumed to be a lambertian diffuse surface. since the surface is not a specular surfac e, it does not abide by the "law of reflection" wh ich states that the "angle of incidence equals the angle of reflec tion". the law of reflection applies only to specular objects and does not apply to lambertian surfaces. a lambertian surface is an ideal diffuse surface having a constant radiance regardless of the view angle. most surfaces have lambertian properties wit h slight specular highlights near the angle defined by the law of reflection. in general, the lambertian model provides a good first-order approximation of most objects, including dry skin and clothing. in a lambertian surface, any rays falling onto it are diffused in all dire ctions. the main prop erty of a lambertian surface is that the radiance (w/m 2 -sr) is isotropic. the other property of lambertian surfaces is that the radiant intensity from the surface is a function of the cosine of the surface normal. when an observer looks at a lambertian surface, the ?brightness? (analogous to radiance) looks the same from all angles; an example is a matte surface. looking at the matte surface, there are no specular highlights. the reason the radiance is isotropic (even though the radiant intensity has a cosine function) is that the surface subtends a smaller angle to the observer by the same cosine factor; so, even when one looks at a surface from the side, the area of the surface becomes smaller by the same factor. ir led si1120 target , dt , et , dt , et d r e r d x e x d
AN442 16 rev. 0.1 the point is that ? dt does not have to equal ? et, at least not for lambertian surfaces. what is important is that the target is being illuminated by the le d at an angle of ? et. the emitter is an sfh 4650 and is assumed to be a point source. however, it is an unusual point source in that the radiant intensity is a function of ? et. for now, we will represent the radi ant intensity of the sfh 4650 as: the led irradiates the surfac e, a. the amount of radiant power at the distance, r e , is essentially the product of the led radiant intensity and the solid angle that the target intercepts; therefore, the ra diant power captured by the target is: the irradiance from the surface is a ratio of the power per unit area; therefore, the surface is irradiance is: given that the surface is assu med to be lambertian, it can be shown that the radiance is: this leads to: the lambertian surface now becomes the light source to the detector. when possible, one should always try to simplify the calculation if assump tions can be made. it is possible to perform an integration of each point on the lambertian surface and determine how each point contributes to the irradiance at the detector. however, it is best to invoke the "rule of five". the "rule of five" helps determine when a light source can be considered a single point. it is commonly stated that a light source represents 0.03 steradians to the observer; so, if the ratio of the largest dimension of the light source to the distance is less than 1/5, the surface can be considered a point source: from the perspective of the detector, the radiant intensity of the lambertian surface is: i e f ? et ?? units are in w/sr = pi e a ? et cos ?? r e 2 ------------------------------ ? units are in w = e t i e ? et cos r e 2 -------------------- - ? = l t e t r ? --- - ? where r < 1 = l t ri e ?? et cos ? ?? r e 2 ?? ?? ----------------------------------------------- - = e d i t r d 2 ---------- if a 0.5 rd ---------- 5 ? = i t l t a ? dt units are in w sr ----- cos =
AN442 rev. 0.1 17 therefore: and since the sf 4650 has a mathematical equation: ed from the contribution of that surface can be derived by plugging in the an gles, reflectance r of the surface, the area a, and the distances re and rd. note that in figure 9, the dimension, d, represents the distance of the target to the pcb hosting both the sfh 4650 and the si1120. as d increases, the ? et and ? ed angles approach 0. also, the dimensions, r d and r e , get closer to the dimension, d. this simplifies e d : so, it is indeed a fourth root func tion, as expected for small targets. the analysis can be re peated for as many segments as necessary to cover the entire illuminated surface. as shown, the irradiance, e d , was basically the contribution of a small lambertian surface irradiated by the sfh 4650. 3.10. calculating irradiance fr om a specular surface reflection when operating in single-port, the window is shared bet ween the detector and the led. there are actually two reflection coefficients, one for each polari ty. the reflection coefficients are a fu nction of the material differences at the junction and the refractive index, n. air = 1, and, for a transparent polycarbonate material, it is approximately 1.6. the reflection coefficient is in the neighborhood of 10%, depending on the material. however, whatever r is, the easiest method of calculating the effect of the led on the detector is to create an image of the specular reflection and then evaluate at twice the distance. in this example, we assume that the led and the detect or are 2 cm away. assume that the glass is 1 cm away so that the angles of incidence and reflection are 45. usi ng the approximate sfh 4650 mathematical model, the sfh 4650 at 45 has a radiant intensity of 175 mw/sr x 0.137 = 24 mw/sr assuming 400 ma current. the sfh 4650 nominally has a 50 mw/sr at 100 ma, and the derating curve chows that, at 400 ma, there is a 3.5x increase. the equation below is a derived sfh 4650 model that was used to derive this 24 mw/sr result. e d l t a ? dt cos ?? r d 2 --------------------------------------- if a 0.5 rd ---------- 5 units are in w m 2 ------- ? = e d ar ? i e ?? et cos ?? ed cos ? ?? r e 2 r d 2 ?? ? ?? -------------------------------------------------------------------------------------- units are in w m 2 ------- = i e i 0 0.25 1 ? et 90 deg ----------------- -? ?? ?? ? 0.75 + cos 12 ? et ?? ? ?? ?? = e d ar ? i 0 ? ?? d 4 ?? ?? ----------------------------- - = i e i 0 0.25 1 ? 90 deg ----------------- -? ?? ?? ? 0.75 + cos 12 ? ?? ? ?? ?? =
AN442 18 rev. 0.1 it is important to notice that the radiant int ensity of the sfh 4650 decreases with increasing ? . for example, at 60, the radiant intensity is 0.084 x 50 mw/sr = 14.7 mw/sr, wh ich is around 60% of the radiant intensity at 45. returning to the example, the distance is 2.83 cm to the virtual image. assuming a coeffi cient of reflection of 10% and applying the inverse square law to the virtual image, the expected irradiance at the detector is 24 mw/sr x 10% / (2.83 cm) 2 =300w/cm 2 . since an object?s reflectance can be as low as 1 w/cm 2 , this internal reflection represents 300 times that of the object being detected, and this analysis has not yet considered the secondary reflections. it is recommended that optical blocking be used to reduce th is internal reflection. if th is is not possible, one should consider the geometry and the led characteristics in calculating how to reduce the internal reflection. as shown in this example, the incident angle formed at the reflection point is the same angle used in the calculation of the led radiant intensity. since the radiant intensity of the led decreases with increasing incidence angle, we can reduce the amount of unwanted specular reflection by increasing the incident angle. increasing the incidence angle can be achieved by incr easing the separation between the led and the detector. the other consequence of moving the det ector away from the led is that t he virtual image becomes farther away. imagine that the separation between t he led and the si1120 is increased from 2 to 4 cm. this will yield an angle of 63 instead of 45. this also increases the distance of the virtual image to 3.46 cm. the resulting reflectance is 175 mw/sr x (0.075) x 10% / (3.46 cm) 2 = 109 w/cm 2 . this is nearly a third of the original 300 w/cm 2 unwanted irradiance. geometrically speaking, anothe r way of increasing the incidence angle is by moving the window closer to both the ir led and the si1120. for example, if the glass is 0.25 cm from the led and si1120 instead of 1 cm, the incidence and reflection angles will no longer be 45, but will now be arctan(1/.25) = 76. t he virtual image is now 2.06 cm away. 175 mw/sr x (0.039) x 10% / (2.06 cm) 2 =160w/cm 2 . this is nearly half of the original 300 w/ cm 2 . now, consider what happens if the se paration is increased while the glass distance is decreased. the angle will become 83, and the virtual image becomes 4.03 cm distant. 175 mw/sr x (0.0195) x 10% / (4.03 cm) 2 = 21 w/ cm 2 ; so, doing both methods decreases the unwanted irradiance by an order of magnitude, relative to the original 300 mw/cm 2 value. note that these calculations do not account for secondary reflections and will always be higher. the point being made here is that, in a single-port case, the primary specular reflection can be reduced by increasing the separation between the led and the si1120 and by decrea sing the distance between the glass and the si1120 and led. another way of looking at this is by relating to human ex perience. while in broad daylight, or when one tries to look inside a room through a glass window, it is generally di fficult to see anything inside, even though it might be expected that th e outside light illuminate the room . the best strategy to see some thing inside the room is to move closer to the window and apply optical blocking (by using one?s hands) to block the sun's rays.
AN442 rev. 0.1 19 figure 10. specular reflection ir led si1120 glass 1 cm 1 cm , r = 45 , i = 45 45 45 virtual image of ir led
AN442 20 rev. 0.1 3.11. determining the refl ection coeffici ent of a window this section provides more details on how to calculate the precise reflec tance based on fresnel equations. these can be used to determine the exact coefficient of refl ection based on the incident angle. in prior examples, a reflection coefficient of 10% was assumed. however, this value can be calculated. this information can be found on the on-line encyclopedia, wikipedia, at http://en.wikipedia.org/wiki/fresnel_equations. the indices of reflection for the s-polarization and p-polarization are: if, as in most cases, the incident li ght is of random polarization, the aver age reflection coefficient can be used. to make matters worse, in our window example, there are actually two surfaces requir ing consideration: the inner surface and the outer surface. both surfaces actually cause reflection. assuming that interference can be neglected, the combined reflection is: in the case of a sing le-port design, the n 2 > n 1 , and it can be shown that, at a mini mum, the reflection coefficient at small incident angles is: r s n 1 ? i cos n 2 1 n 1 n 2 ----- - ? i sin ?? ?? 2 ?? n 1 ? i cos n 2 1 n 1 n 2 ----- - ? i sin ?? ?? 2 ?+ --------------------------------------------------------------------------- 2 = r p n 1 1 n 1 n 2 ----- - ? i sin ?? ?? 2 ? n 2 ? i cos ? n 1 1 n 1 n 2 ----- - ? i sin ?? ?? 2 ? n 2 ? i cos + --------------------------------------------------------------------------- 2 = r r s r p + ?? 2 -------------------------- = r2 r 1r + ?? ------------------ ? = r n 1 n 2 ? ?? n 1 n 2 + ?? ----------------------- ?? ?? 2 =
AN442 rev. 0.1 21 n otes :
disclaimer silicon laboratories intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using or intending to use the silicon laboratories products. characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "typical" parameters provided can and do vary in different applications. application examples described herein are for illustrative purposes only. silicon laboratories reserves the right to make changes without further notice and limitation to product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the included information. silicon laboratories shall have no liability for the consequences of use of the information supplied herein. this document does not imply or express copyright licenses granted hereunder to design or fabricate any integrated circuits. the products must not be used within any life support system without the specific written consent of silicon laboratories. a "life support system" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personal injury or death. silicon laboratories products are generally not intended for military applications. silicon laboratories products shall under no circumstances be used in weapons of mass destruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons. trademark information silicon laboratories inc., silicon laboratories, silicon labs, silabs and the silicon labs logo, cmems?, efm, efm32, efr, energy micro, energy micro logo and combinations thereof, "the world?s most energy friendly microcontrollers", ember?, ezlink?, ezmac?, ezradio?, ezradiopro?, dspll?, isomodem ?, precision32?, proslic?, siphy?, usbxpress? and others are trademarks or registered trademarks of silicon laboratories inc. arm, cortex, cortex-m3 and thumb are trademarks or registered trademarks of arm holdings. keil is a registered trademark of arm limited. all other products or brand names mentioned herein are trademarks of their respective holders. http://www.silabs.com silicon laboratories inc. 400 west cesar chavez austin, tx 78701 usa smart. connected. energy-friendly products www.silabs.com/products quality www.silabs.com/quality support and community community.silabs.com


▲Up To Search▲   

 
Price & Availability of AN442

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X